{php include wl_template('common/header');}
    <link rel="stylesheet" href="{TG_URL_ARES}shaoniangong/css/user.css"/>
    <style>
        .jifen_list div{
            float: left;
        }
    </style>
</head>
<body>
<div id="footer">{php include wl_template('common/footer');}</div>
    <div class="kefuEWM">
        <div>
            <img src="{php echo tomedia($config['tginfo']['kefu_image'])}" alt=""/>
            <p>长按识别二维码</p>
        </div>
    </div>
    <div class="weui-loadmore">
        <i class="weui-loading"></i>
        <span class="weui-loadmore__tips">玩命加载中</span>
    </div>
    <div class="userImg">
        <div><img src="{$member['avatar']}" alt=""/></div>
        <div>{$member['nickname']}</div>
    </div>
    <div class="coupon">
        <ul>
            <li>
                <div>
                    <i class="iconal-jifen"></i>
                    <span>我的积分</span>
                </div>
                <div>
                    <b>0.00</b>分
                </div>
            </li>
            <!-- <li>
                <div>
                    <i class="iconal-jifen"></i>
                    <span>我的余额</span>
                </div>
                <div>
                    <b>0.00</b>元
                </div>
            </li> -->
            <li onclick="openCoupon()">
                <div>
                    <i class="iconal-align-justify"></i>
                    <span>我的卡券</span>
                </div>
                <div>
                    <b>0</b>张
                </div>
            </li>
        </ul>
    </div>
    <div class="weui-cells">
        <a class="weui-cell weui-cell_access" href="{php echo app_url('order/order');}">
            <div class="weui-cell__hd"><i class="iconal-dingdan"></i></div>
            <div class="weui-cell__bd">
                <p>我的预约</p>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
        <a class="weui-cell weui-cell_access" href="{php echo app_url('order/personnelList');}from=user">
            <div class="weui-cell__hd"><i class="iconal-jishiguanli"></i></div>
            <div class="weui-cell__bd">
                <p>个人信息</p>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
        <!-- <a class="weui-cell weui-cell_access" href="{php echo app_url('order/personnelList');}from=user">
            <div class="weui-cell__hd"><i class="iconal-servicefill"></i></div>
            <div class="weui-cell__bd">
                <p>活动券</p>
            </div>
            <div class="weui-cell__ft"></div>
        </a> -->
    </div>
    <!-- <div class="weui-cells mB">
        <a class="weui-cell weui-cell_access kefu" href="javascript:;">
            <div class="weui-cell__hd"><i class="iconal-servicefill"></i></div>
            <div class="weui-cell__bd">
                <p>联系客服</p>
            </div> -->
            <!-- <div class="weui-cell__ft"></div> -->
        <!--</a>-->
        <!--<a class="weui-cell weui-cell_access" href="javascript:;" onclick="addressCH()">-->
            <!--<div class="weui-cell__hd"><i class="iconal-location"></i></div>-->
            <!--<div class="weui-cell__bd">-->
                <!--<p>我的地址</p>-->
            <!--</div>-->
            <!--<div class="weui-cell__ft"></div>-->
        <!--</a>-->
        <a class="weui-cell weui-cell_access" href="{php echo app_url('member/coupon')}">
            <div class="weui-cell__hd"><i class="iconal-align-justify"></i></div>
            <div class="weui-cell__bd">
                <p>卡券中心</p>
            </div>
            <div class="weui-cell__ft"></div>
        </a>

        <?
        $sql = "select * from " .tablename('tg_saler') ." where uniacid = :uniacid and openid = :openid and status = 1";
        $parms = array(':uniacid' => $_W['uniacid'] , 'openid' => $_W['openid']);
        $saler = pdo_fetch($sql , $parms);

        ?>
        {if !empty($saler)}
        <a class="weui-cell weui-cell_access" href="{php echo app_url('member/child')}">
            <div class="weui-cell__hd"><i class="iconal-align-justify"></i></div>
            <div class="weui-cell__bd">
                <p>核销中心</p>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
        {/if}

    </div>
    <div id="COUPON"></div>
    {php include wl_template('common/address');}
</body>
<script src="{TG_URL_ARES}shaoniangong/js/common.js"></script>
<script src="{TG_URL_ARES}shaoniangong/js/user.js"></script>
</html>
